<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>


    </style>
</head>
<body>
    <div id="app">
        <strong ref="app">app</strong>
        <v-test ref="test"></v-test>
    </div>
</body>
<script src="../js/vue.js"></script>
<script>
    Vue.config.productionTip = false;
    new Vue({
        el:"#app",
        data:{flag:true},
        mounted(){
          console.log(this.$refs.app)
          console.log(this.$refs.test)
        },
        components:{
            "v-test":{
                template:"<strong ref='strong'>v-test</strong>",
                mounted(){
                    console.log(this.$refs.strong)
                }
            }
        }
    })
</script>
</html>